package main

import (
	"github.com/gin-gonic/gin"
	"net/http"
)

func main() {
	r := gin.Default()

	r.GET("/hello", func(context *gin.Context) {
		context.String(http.StatusOK, "OK")
	})

	shopGroup := r.Group("/shop", func1, func2)
	shopGroup.Use(func3)
	{
		shopGroup.GET("/index", func4, func5)
	}

	r.Run()
}

func func1(c *gin.Context) {
}
func func2(c *gin.Context) {

}
func func3(c *gin.Context) {

}
func func4(c *gin.Context) {

}
func func5(c *gin.Context) {

}
